import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: '主页',
    redirect: '/home'
  },
  {
    path: '/home',
    name: '主页面',
    component: () => import('../views/HomePage.vue')
  },
  {
    path: '/worldmap',
    name: '地图飞线',
    component: () => import('@/components/echarts/worldMapEchart.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
